package com.lelefly.base.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * FarmlandInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "farmland_info", catalog = "lelefly")
public class FarmlandInfo implements java.io.Serializable {

	// Fields

	private String farmlandnm;
	private String usernm;
	private String farmlandname;
	private String lngAdnLat;
	private String obstacle;
	private String bz;
	private String url;
	private String uodateTime;
	private Integer flyerId;

	// Constructors

	/** default constructor */
	public FarmlandInfo() {
	}

	/** minimal constructor */
	public FarmlandInfo(String farmlandnm, String farmlandname, String lngAdnLat, String bz) {
		this.farmlandnm = farmlandnm;
		this.farmlandname = farmlandname;
		this.lngAdnLat = lngAdnLat;
		this.bz = bz;
	}

	/** full constructor */
	public FarmlandInfo(String farmlandnm, String usernm, String farmlandname, String lngAdnLat, String obstacle, String bz, String url, String uodateTime, Integer flyerId) {
		this.farmlandnm = farmlandnm;
		this.usernm = usernm;
		this.farmlandname = farmlandname;
		this.lngAdnLat = lngAdnLat;
		this.obstacle = obstacle;
		this.bz = bz;
		this.url = url;
		this.uodateTime = uodateTime;
		this.flyerId = flyerId;
	}

	// Property accessors
	@Id
	@Column(name = "farmlandnm", unique = true, nullable = false, length = 40)
	public String getFarmlandnm() {
		return this.farmlandnm;
	}

	public void setFarmlandnm(String farmlandnm) {
		this.farmlandnm = farmlandnm;
	}

	@Column(name = "usernm", length = 40)
	public String getUsernm() {
		return this.usernm;
	}

	public void setUsernm(String usernm) {
		this.usernm = usernm;
	}

	@Column(name = "farmlandname", nullable = false, length = 100)
	public String getFarmlandname() {
		return this.farmlandname;
	}

	public void setFarmlandname(String farmlandname) {
		this.farmlandname = farmlandname;
	}

	@Column(name = "lngAdnLat", nullable = false, length = 65535)
	public String getLngAdnLat() {
		return this.lngAdnLat;
	}

	public void setLngAdnLat(String lngAdnLat) {
		this.lngAdnLat = lngAdnLat;
	}

	@Column(name = "obstacle", length = 100)
	public String getObstacle() {
		return this.obstacle;
	}

	public void setObstacle(String obstacle) {
		this.obstacle = obstacle;
	}

	@Column(name = "bz", nullable = false, length = 100)
	public String getBz() {
		return this.bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

	@Column(name = "url")
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "uodate_time", length = 100)
	public String getUodateTime() {
		return this.uodateTime;
	}

	public void setUodateTime(String uodateTime) {
		this.uodateTime = uodateTime;
	}

	@Column(name = "flyer_id")
	public Integer getFlyerId() {
		return this.flyerId;
	}

	public void setFlyerId(Integer flyerId) {
		this.flyerId = flyerId;
	}

}